package com.xnfh.equipment.viewmodel

import com.xnfh.common.bean.GuanGaiBean
import com.xnfh.common.bean.WarningBean
import com.xnfh.equipment.viewmodel.base.BaseTokenViewModelRes
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.manager.ApiManager
import okhttp3.RequestBody

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/27 14:29
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/27 14:29
 * @UpdateRemark: 更新说明
 */
class EquipmentLogViewModelRes : BaseTokenViewModelRes() {

    suspend fun requestSysemLog(body: RequestBody, data: RespStateData<WarningBean>) = dealResp(
        { ApiManager.api.requestWarningList(body) }, data
    )

    suspend fun requestGuaiGai(body: RequestBody, data: RespStateData<GuanGaiBean>) = dealResp(
        { ApiManager.api.requestGuangaiList(body) }, data
    )
}